public class J06while {
    public static void main(String[] args) {

        //打印10个hello
//        while (true){
//            System.out.println("hello");
//        }
        //循环初始化
        int count = 0;
        //100....
        //循环判断是否可以进入
        while (count<=9){
            System.out.println("hello" + (count + 1));
//            count = count + 1;
//            count += 1;
            //0,1,2.....9,10,11
            //逼近false
            //100
            count++;
        }
        System.out.println("end");
    }
}
class ForTest{
    public static void main(String[] args) {

        // i
        for (int i = 1; i <= 10; i++) {
            System.out.println("hello"+i);
            //1000
        }

        int conut = 1;
        for (int a = 0;conut<=10;a--) {
            System.out.println("hello"+conut);

            conut++;
        }
    }
}
